package com.magiccompass.alipay.barcode.model;

public class AlipayBarcodeAllResponseAJAXModel {
	// general parameter
	private String success;
	private String redirect;
	private String redirectURL;
	
	// business parameter
	private String responseResultCode;
	private String responseResultReason;
	
	
	public String getSuccess() {
		return success;
	}
	public void setSuccess(String success) {
		this.success = success;
	}
	public String getRedirect() {
		return redirect;
	}
	public void setRedirect(String redirect) {
		this.redirect = redirect;
	}
	public String getRedirectURL() {
		return redirectURL;
	}
	public void setRedirectURL(String redirectURL) {
		this.redirectURL = redirectURL;
	}
	public String getResponseResultCode() {
		return responseResultCode;
	}
	public void setResponseResultCode(String responseResultCode) {
		this.responseResultCode = responseResultCode;
	}
	public String getResponseResultReason() {
		return responseResultReason;
	}
	public void setResponseResultReason(String responseResultReason) {
		this.responseResultReason = responseResultReason;
	}
	
	public String makeJSONString(){
		StringBuffer sb = new StringBuffer();
		sb.append("{");
		sb.append("\"success\":\""+success+"\",");
		sb.append("\"redirect\":\""+redirect+"\",");
		sb.append("\"redirectURL\":\""+redirectURL+"\",");
		sb.append("\"responseResultCode\":\""+responseResultCode+"\",");
		sb.append("\"responseResultReason\":\""+responseResultReason+"\"");
		sb.append("}");
		return sb.toString();
	}
}